﻿using System.Configuration;

namespace ErrorDumper.Configuration {
    public class WritersConfigurationSection : ConfigurationSection {
        private const string _sectionName = "errorDumper/writers";

        public static WritersConfigurationSection GetSection() {
            return (WritersConfigurationSection)
                ConfigurationManager.GetSection(_sectionName);
        }

        [ConfigurationProperty("list")]
        public WriterConfigurationElementCollection List {
            get { return (WriterConfigurationElementCollection)this["list"]; }
        }
    }
}